package com.avic.modules.record.rest;

import com.avic.modules.statistics.service.MonthlyStatisticsService;
import com.avic.modules.statistics.service.MonthlyStatusRecordService;
import org.springframework.stereotype.Component;

@Component
public class FunctionTask {

    private final MonthlyStatisticsService monthlyStatisticsService;
    private final MonthlyStatusRecordService monthlyStatusRecordService;

    public FunctionTask(MonthlyStatisticsService monthlyStatisticsService, MonthlyStatusRecordService monthlyStatusRecordService) {
        this.monthlyStatisticsService = monthlyStatisticsService;
        this.monthlyStatusRecordService = monthlyStatusRecordService;
    }
    
    public void runFunction() {
        monthlyStatisticsService.del();
        monthlyStatusRecordService.del();
    }
}
